package lvxu.dao;

import java.util.List;

import lvxu.bean.Music;
import lvxu.bean.Song;
import lvxu.bean.SongExample;
import org.apache.ibatis.annotations.Param;

public interface SongMapper {
    long countByExample(SongExample example);

    int deleteByExample(SongExample example);

    int insert(Song record);

    int insertSelective(Song record);

    List<Song> selectByExample(SongExample example);
    //链表查询某一用户收藏歌单
    List<Song> selectByExampleWithMusic(SongExample example);

    int updateByExampleSelective(@Param("record") Song record, @Param("example") SongExample example);

    int updateByExample(@Param("record") Song record, @Param("example") SongExample example);
}